package com.pk.platform.business.privilege.dao.impl;

import java.util.List;

import com.pk.platform.business.core.dao.impl.GenericDaoImpl;
import com.pk.platform.business.privilege.dao.IDeptDao;
import com.pk.platform.business.privilege.vo.DeptVO;
import com.pk.platform.domain.privilege.Department;
import com.pk.platform.util.page.ListPage;
import com.pk.platform.util.page.Pager;

public class DeptDaoImpl extends GenericDaoImpl implements IDeptDao {

	public ListPage queryDept(DeptVO dvo, Pager pager) {
		String sql = "select * from p_department where 1 = 1";
		return this.getListPage(sql, null, pager);
	}
	
	public List<Department> queryDeptList()
	{
		String hql = "from Department d";
		return this.getHibernateTemplate().find(hql);
	}

}
